# -*- codeing = utf-8 -*-
# @Time : 2024/3/18 12:11
# @Author : huangjing
# @File : yamlUtil.py
# @Software : PyCharm
import yaml,os
class YamlUtil():
    def read_case_data(self,case_name):
        url = os.getcwd()
        if 'case' in url:
            url = '../caseData/'+case_name
        else:
            url = url+'/demo/caseData/'+case_name
        with open(url,mode='r',encoding='utf-8') as f:
            value = yaml.load(stream=f,Loader=yaml.FullLoader)
            return value